package com.zcz.umengpush.util.android;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import com.zcz.umengpush.util.AndroidNotification;
import org.json.JSONObject;
public class AndroidCustomizedcast extends AndroidNotification {
	public AndroidCustomizedcast(String appkey,String appMasterSecret) throws Exception {
			setAppMasterSecret(appMasterSecret);
			setPredefinedKeyValue("appkey", appkey);
			this.setPredefinedKeyValue("type", "customizedcast");	
	}
	/**
	 * 设置别名
	 * @param alias
	 * @param aliasType
	 * @throws Exception
	 */
	public void setAlias(String alias,String aliasType) throws Exception {
    	setPredefinedKeyValue("alias", alias);
    	setPredefinedKeyValue("alias_type", aliasType);
    }
	/**
	 * 设置文件标识		
	 * @param fileId
	 * @param aliasType
	 * @throws Exception
	 */
	public void setFileId(String fileId,String aliasType) throws Exception {
    	setPredefinedKeyValue("file_id", fileId);
    	setPredefinedKeyValue("alias_type", aliasType);
    }

}
